
        
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Dashboard extends MY_Controller {

 function __construct()
 {
   parent::__construct();
   $this->load->model('Dashboard_model'); 
 }

 function index()
 {
    //$data['totalurl'] = $this->Dashboard_model->totalurl(); 
    $data['results']  = $this->Dashboard_model->getchart();
    $data['browser']  = $this->Dashboard_model->browserHits();
    $data['os']  = $this->Dashboard_model->osHits();
    $data['country']  = $this->Dashboard_model->countryHits();
   
    //echo "<pre>";
    //print_r($data);
    // print_r($data);
     $this->show_view('dashboard', $data);
     
 }
 }

/* End of file welcome.php */
/* Location: ./application/controllers/welcome.php */